Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
uni-string
Advanced tools
Unicode-aware String object
npm install uni-string
import UString from 'uni-string';
const UString = require('uni-string')
console.log(UString.support);
let t = (new UString('♥️𠬠典')).padStart(10, '𠬠');
t = t.concat('\n♥️𠬠典そこで彼らは\'",オリーブ山と呼ばれる山からエルサレムに帰った。');
console.dir(t);
let t2 = new UString(t);
console.log(t2);
//console.log(666, t2.substr(-9, 3));
console.log(666, t2.indexOf('𠬠典', 2));
console.log(666, t2.endsWith('𠬠典'));
let t3 = new UString('👩👩👧👦');
console.log(t3.size(), t3.split(''));
console.log('length', t2.length);
console.log('charLength', t2.charLength);
console.log('size()', t2.size());
//length 70
//charLength 49
//size() 49
{
split: true,
substr: true,
substring: true,
indexOf: true,
includes: true,
slice: true,
charAt: true,
startsWith: true,
endsWith: true,
padEnd: true,
padStart: true }
FAQs
Unicode String object
We found that uni-string demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.